<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Registration page</title>
    <style>
        legend{
            font-family: "华文新魏";
            font-size: 200%;
            text-align: center;
        }
        td{
            font-family: "华文仿宋";
            font-size: larger;
        }
        fieldset{
            width:1200px;
        }
        body{
            background-image:url(2.png);
            background-size:cover;
            background-repeat:no-repeat;
            background-attachment:fixed;
        
        }
    </style>
</head>

<body>
     <fieldset>
     <table width="70%" height="" border="0" align="center" cellpadding="0" cellspacing="0">
        <legend align="center">Customer Information</legend>
        <form action="save_information.php" method="post">
            <table>
                <tr>
                    <td width="67%" align="right">Your ID(like A-00): </td>
                    <td width="70%" align="left"><input type="text" name="cid" size="30" /></td>
                </tr>
                <tr>
                    <td width="65%" align="right">Lastname: </td>
                    <td width="70%" align="left"><input type="text" name="lname" size="20" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">Firstname: </td>
                    <td width="70%" align="left"><input type="text" name="fname" size="20" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">Email: </td>
                    <td width="70%" align="left"><input type="text" name="email" size="30" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">Address: </td>
                    <td width="70%" align="left"><input type="text" name="address" size="30" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">Telephone: </td>
                    <td width="70%" align="left"><input type="text" name="tel" size="30" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">Phone: </td>
                    <td width="70%" align="left"><input type="text" name="phone" size="30" /></td>
                </tr>
                <tr>
                   <td width="55%" align="right">CreditCard: </td>
                    <td width="70%" align="left"><input type="text" name="careditCard" size="30" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">Student?: </td>
                    <td width="70%" align="left"><input type="enum" name="student" size="30" /></td>
                </tr>
                <tr>
                   <td width="55%" align="right">Tickets: </td>
                    <td width="70%" align="left"><input type="number" name="tickets" size="30" /></td>
                </tr>

            </table>
            <table width="70%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center"><input type="submit" name="submit1" value="Confirm" /></td><!---确定按钮-->
            </tr>
            </table>
        </form>
</body>

<body>
<fieldset>
     <table width="20%" height="" border="0" align="center" cellpadding="0" cellspacing="0">
     <td align="center" style = "background-color:red"> Please add after registration! !</td>
        <legend align="center">License Information</legend>
        <form action="save_information2.php" method="post">
            <table>
                <tr>
                    <td width="67%" align="right">Your ID: </td>
                    <td width="70%" align="left"><input type="text" name="cid" size="30" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">LicenseNumber: </td>
                    <td width="70%" align="left"><input type="text" name="lnum" size="20" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">IssueState: </td>
                    <td width="70%" align="left"><input type="text" name="state" size="20" /></td>
                </tr>
                <tr>
                    <td width="55%" align="right">ExpirationDate: </td>
                    <td width="70%" align="left"><input type="date" name="eDate" size="20" /></td>
                </tr>

            </table>
            <table width="70%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center"><input type="submit" name="submit1" value="Confirm" /></td><!---确定按钮-->
            </tr>
            </table>
        </form>
</body>
<?php 
include("connect.php");
$res = mysqli_query($connect, "show tables");
$row = mysqli_num_rows($res);   
$arr = mysqli_fetch_array($res);
$tablename = $arr[0];
    //链接table_information.php，传递数据表名
$name = '<a href="readcar.php?tablename=' . $tablename . '">'. $tablename . '</a>';
echo "<tr><legend>Click to view vehicle specific information——>>" . $name . "_Information</legend></tr>";
?> 

</html>
